<ion-view view-title="密码设置" cache-view="false">
    <ion-nav-buttons>
        <exit-button></exit-button>
    </ion-nav-buttons>
    <ion-content ng-class="{'has-loading': isOffline}">
        <div class="kProgress">
            <div class="kProgressBar">
                <div class="kProgressBarInner" style="width:80%"><i></i></div>
            </div>
            <div class="kProgressState">70/100</div>
        </div>
        <!-- tips -->
        <div class="kCellsTitle noRemind">设置交易密码（用户登录密码）</div>
        <!-- panel -->
        <div class="kCells">
            <div class="kCell">
                <div class="kCellPrimary">
                    <input type="tel" class="txt" ng-model="param.trade_pwd" ng-show="param.switch_abc" digital-keyboard="param.trade_pwd"
                           placeholder="请输入6位数字交易密码" maxlength="6" />
                    <input type="password" class="txt" ng-model="param.trade_pwd" ng-show="!param.switch_abc" digital-keyboard="param.trade_pwd"
                           placeholder="请输入6位数字交易密码" maxlength="6" />
                </div>
                <div class="kCellExtra">
                    <input  ng-click="param.switch_abc=!param.switch_abc;" class="kEye" type="checkbox">
                </div>
            </div>
            <div class="kCell">
                <div class="kCellPrimary">
                    <input type="tel" class="txt" ng-model="param.trade_pwd_again" ng-show="param.switch_abc" digital-keyboard="param.trade_pwd_again"
                           placeholder="请再次输入6位数字交易密码" maxlength="6" />
                    <input type="password" class="txt" ng-model="param.trade_pwd_again" ng-show="!param.switch_abc" digital-keyboard="param.trade_pwd_again"
                           placeholder="请再次输入6位数字交易密码" maxlength="6" />
                </div>
            </div>
        </div>
        <!-- panel -->
<!--        <div class="fund-pwd-toggle">
            <span ng-class="{switchOn:param.switch_fund,switchOff:!param.switch_fund}"
                                           ng-click="param.switch_fund=!param.switch_fund;"><i></i></span>
        </div>-->
        <div class="kCellsTitle">
            <input class="kSwitch fr" type="checkbox"  ng-click="param.switch_fund=!param.switch_fund;">
            <span  ng-show="param.switch_fund">设置交易密码（用户登录密码）</span>
            <span  ng-show="!param.switch_fund">资金密码与交易密码相同</span>
        </div>
        <div ng-show="param.switch_fund">

            <div class="kCells">
                <div class="kCell">
                    <div class="kCellPrimary">
                        <input type="password" class="txt" ng-model="param.fund_pwd" placeholder="请输入6位数字资金密码" maxlength="6"
                               digital-keyboard="param.fund_pwd" />
                    </div>
                </div>
                <div class="kCell">
                    <div class="kCellPrimary">
                        <input type="password" class="txt" ng-model="param.fund_pwd_again" placeholder="请再次输入6位数字资金密码" maxlength="6"
                               digital-keyboard="param.fund_pwd_again" />
                    </div>
                </div>
            </div>
        </div>
        <!-- tips -->
        <div class="kRemind">
            友情提醒：请自行设置密码，定期修改密码和增强密码强度，并妥善保管个人账户信息和注意密码安全！
        </div>
        <!-- button -->
        <a class="kBtnDefault" ng-click="setPwd()">提交</a>
    </ion-content>
</ion-view>
